/***********************************************************************
    filename:   DaterTransUser.h
    created:    10/4/2012
    author:     4Ys

    purpose:    Defines base class for Calendar objects
*************************************************************************/
#ifndef _DaterTransUser_h_
#define _DaterTransUser_h_

#include "DaterTranslator.h"
#include "DaterSingleton.h"

namespace Dater
{
	/*!
	\brief
		An entity class to translate the order.
	*/
	class TransUser : public Translator
	{
	public:
		/*!
		\brief
			Constructor for TransUser class
		*/
		TransUser():Translator(){}

		virtual bool execute( int& clientUid, std::vector<std::string>& sendMessages, std::vector<int>& sendClientUids ) = 0;

		virtual bool judge( const char* order );
	};

	class TransUserSearch : public TransUser , public Singleton<TransUserSearch>
	{
	/*!
	\brief
		a class to translate the user search.
	*/
	public:
		/*!
		\brief
			Constructor.
		*/
		TransUserSearch():TransUser(){_ifRequest = false;}

		virtual bool execute( int& clientUid, std::vector<std::string>& sendMessages, std::vector<int>& sendClientUids );

		virtual bool judge( const char* order );
	};

}

#endif